Avoid integer overflow
authorMatthias Clasen <mclasen@redhat.com>
Sun, 30 Jun 2013 02:06:54 +0000 (22:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 30 Jun 2013 02:06:54 +0000 (22:06 -0400)
commit894b1ae76a32720f4bb3d39cf460402e3ce331d6
tree3fbfb20d0648f583d601b1751896e18bcfe97d7f
parentf0a8d11563d730e780ed28e4b1353f73fae93b6a
Avoid integer overflow

Use g_malloc_n in gdk_cairo_set_source_pixbuf when allocating
a large block of memory, to avoid integer overflow.

Pointed out by Bert Massop in
https://bugzilla.gnome.org/show_bug.cgi?id=703220
gdk/gdkcairo.c